﻿{%extends "admin/base.html"%}
{% load i18n %}

{%block content%}
<div class="wrap">
	<h2 class="title1">{% trans "General options" %}</h2>
	{% if messages %}
	<ul class="messages">
		{% for message in messages %}
		<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
		{% endfor %}
	</ul>
	{% endif %}
	<form id="settings" action="{{ blog.get_admin_settings_save_url }}" method="post" style="width:700px">
		<table class="form-table2" style="margin-top:20px;">
			<tbody>
				<tr valign="top">
					<th>{{ blogform.title.label_tag }}<span class="red">*</span></th>
					<td {% if blogform.title.errors %}class="error"{% endif %}>{{ blogform.title }}</td>
					<td>{% if blogform.title.errors %}{{ blogform.title.errors }}{% endif %}</td>
				</tr>
				<tr valign="top">
					<th>{{ blogform.description.label_tag }}</th>
					<td {% if blogform.description.errors %}class="error"{% endif %}>{{ blogform.description }}</td>
					<td>{% if blogform.description.errors %}{{ blogform.description.errors }}{% endif %}</td>
				</tr>
				<tr valign="top">
					<th>{{ blogform.notice.label_tag }}</th>
					<td {% if blogform.notice.errors %}class="error"{% endif %}>{{ blogform.notice }}</td>
					<td>{% if blogform.notice.errors %}{{ blogform.notice.errors }}{% endif %}</td>
				</tr>
				<tr valign="top">
					<th>{{ blogform.display_count.label_tag }}</th>
					<td {% if blogform.display_count.errors %}class="error"{% endif %}>{{ blogform.display_count }}</td>
					<td>{% if blogform.display_count.errors %}{{ blogform.display_count.errors }}{% endif %}</td>
				</tr>
				<tr valign="top">
					<th>{{ blogform.allow_comment.label_tag }}</th>
					<td {% if blogform.allow_comment.errors %}class="error"{% endif %}>{{ blogform.allow_comment }}</td>
					<td>{% if blogform.allow_comment.errors %}{{ blogform.allow_comment.errors }}{% endif %}</td>
				</tr>
				<tr valign="top">
					<th scope="row">
						<label for="theme">{% trans "Theme" %}</label>
					</th>
					<td>
						<select  id="theme" name="theme" >
		                    <option value="default" selected='selected'>default</option>
						</select>
					</td>
				</tr>
			</tbody>
		</table>
		<p class="submit">
			<input type="submit" value="{% trans 'Save settings' %}" class="button-primary" name="Submit">
		</p>
	</form>
</div>
{%endblock%}
